.builder-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.sidebar {
    background: #fff;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.canvas-container {
    flex: 1;
    background: #f8f9fa;
    overflow: auto;
    padding: 20px;
}

.canvas {
    background: #fff;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    min-height: 600px;
    padding: 20px;
    position: relative;
}

.canvas.drag-over {
    border-color: #007bff;
    background: #f0f8ff;
}

.component-item {
    cursor: grab;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
}

.component-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.component-item:active {
    cursor: grabbing;
}

.canvas-element {
    position: relative;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    cursor: move;
}

.canvas-element:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.canvas-element.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.3);
}

.element-controls {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.properties-panel {
    background: #fff;
    border-left: 1px solid #dee2e6;
    padding: 20px;
    overflow-y: auto;
}